package com.neuedu.qian.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.sql.Timestamp;
import java.util.Date;
/**
* Author lu
* Date  2025-07-31 09:49:29
*/
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@Alias("user")
@TableName(value = "user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
    *系统用户id
    */
    @TableField(value = "admin_id")
    @TableId(type = IdType.AUTO)
    private Integer adminId;
    /**
    * 密码(md5加密)
    */
    @TableField(value = "password")
    private String password;
    /**
    * 用户名
    */
    @TableField(value = "username")
    private String username;
    /**
    * 工号
    */
    @TableField(value = "work_no")
    private String workNo;
    /**
    * 姓名
    */
    @TableField(value = "name")
    private String name;
    /**
    * 手机
    */
    @TableField(value = "mobile")
    private String mobile;
    /**
    * 电子邮箱
    */
    @TableField(value = "email")
    private String email;
    /**
    * 固定电话
    */
    @TableField(value = "fixed_phone")
    private String fixedPhone;
    /**
    * 类型(1:超级管理;2:普通管理员)
    */
    @TableField(value = "user_type")
    private Integer userType;
    /**
    * 创建时间
    */
    @TableField(value = "create_time")
    private Date createTime;
    /**
    * 创建用户id
    */
    @TableField(value = "create_user_id")
    private Integer createUserId;
    /**
    * 修改时间
    */
    @TableField(value = "update_time")
    private Date updateTime;
    /**
    * 修改用户id
    */
    @TableField(value = "update_user_id")
    private Integer updateUserId;
    /**
    * 备注信息
    */
    @TableField(value = "remark")
    private String remark;
    /**
    * 删除状态(1:正常或使用中;0:逻辑删除或弃用或停用)
    */
    @TableField(value = "delete_status")
    private Integer deleteStatus;
}